package com.fs.controller.vo.room;

import com.fs.service.bo.room.BoRoom;
import lombok.Data;

@Data
public class RespRoom {
    private Integer id;
    private String name;
    private float price;
    private double latitude;
    private double longitude;
    private String picUrl;

    public RespRoom(BoRoom room, String picUrl) {
        this.id = room.getId();
        this.name = room.getName();
        this.price = room.getPrice();
        this.latitude=room.getShop().getLatitude();
        this.longitude=room.getShop().getLongitude();
        this.picUrl=picUrl;
    }
}
